package com.jshan.base.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.List;

@Data
@Schema(description = "数据表索引定义")
public class TableIndexDTO {
    @Schema(description = "索引名")
    private String name;

    @Schema(description = "索引类型(UNIQUE/NORMAL/FULLTEXT/...) ")
    private String type;

    @Schema(description = "索引字段列表")
    private List<String> fields;

    @Schema(description = "是否唯一")
    private Boolean unique;
}